*This file provides syntax to replicate all main results from "TRANSNATIONAL WOMEN�S ACTIVISM AND THE 
GLOBAL DIFFUSION OF GENDER QUOTAS" by Melanie M. Hughes, Mona Lena Krook, and Pamela Paxton, published 
in International Studies Quarterly.;

libname quota 'insert file reference to location of SAS dataset here';

*Table 1;
proc genmod descending data=quota.quotafinal; *baseline;
	model quota_1= iwm_cum evermarx pr_lib2 pr_mixed pr_other lngdpmadd pwingo avgdemlag
		dur1/d=binomial;
	run;
proc genmod descending data=quota.quotafinal; *add interaction;
	model quota_1= iwm_cum evermarx pr_lib2 pr_mixed pr_other lngdpmadd pwingo avgdemlag
		dur1 pwingoxxiwm/d=binomial;
	run;
proc genmod descending data=quota.quotafinal; *add colonialism;
	model quota_1= iwm_cum evermarx pr_lib2 pr_mixed pr_other lngdpmadd pwingo avgdemlag
		dur1 pwingoxxiwm british_l spanish_l french col_oth2/d=binomial;
	run;
proc genmod descending data=quota.quotafinal; *add regional density;
	model quota_1= iwm_cum evermarx pr_lib2 pr_mixed pr_other lngdpmadd pwingo avgdemlag 
		 pwingoxxiwm dur1 british_l spanish_l french col_oth2 diffreg/d=binomial;
	run;
proc genmod descending data=quota.quotafinal; *add women politicians;
	model quota_1= iwm_cum evermarx pr_lib2 pr_mixed pr_other lngdpmadd pwingo avgdemlag 
		 pwingoxxiwm dur1 british_l spanish_l french col_oth2 diffreg wiplag1 lead_strngmed/d=binomial;
	run;
proc genmod descending data=quota.quotafinal; *new baseline;
	model quota_1= iwm_cum evermarx pr_lib2 pr_mixed pr_other lngdpmadd pwingo avgdemlag 
		 pwingoxxiwm dur1 diffreg/d=binomial;
	run;
data no_oecd;
	set quota.quotafinal;
		if oecd=1 then delete;
	run;
proc genmod descending data=no_oecd; *non-oecd;
	model quota_1= iwm_cum evermarx pr_lib2 pr_mixed pr_other lngdpmadd pwingo avgdemlag 
		 pwingoxxiwm dur1 diffreg/d=binomial;
	run;

*Table 2;
proc genmod descending data=quota.quotafinal; *original;
	model quota_1= iwm_cum evermarx pr_lib2 pr_mixed pr_other lngdpmadd pwingo avgdemlag 
		 pwingoxxiwm dur1 diffreg/d=binomial;
	run;
proc genmod descending data=quota.quotafinal; *activist;
	model quota_1= iwm_cum evermarx pr_lib2 pr_mixed pr_other lngdpmadd pwingoa avgdemlag 
		 pwingoaxxiwm dur1 diffreg/d=binomial;
	run;
proc genmod descending data=quota.quotafinal; *not activist;
	model quota_1= iwm_cum evermarx pr_lib2 pr_mixed pr_other lngdpmadd pwingona avgdemlag 
		 pwingonaxxiwm dur1 diffreg/d=binomial;
	run;

*Table 3;
proc genmod descending data=quota.quotafinal; *civil liberties;
	model quota_1= iwm_cum evermarx pr_lib2 pr_mixed pr_other lngdpmadd pwingo pwingoxxiwm freecllag1 
		 dur1 diffreg/d=binomial;
	run;
proc genmod descending data=quota.quotafinal; *nonlinear civl liberties;
	model quota_1= iwm_cum evermarx pr_lib2 pr_mixed pr_other lngdpmadd pwingo pwingoxxiwm freecllag1 cl2 
		 dur1 diffreg/d=binomial;
	run;
proc genmod descending data=quota.quotafinal; *women in politics climate;
	model quota_1= iwm_cum evermarx pr_lib2 pr_mixed pr_other lngdpmadd pwingo pwingoxxiwm freecllag1 cl2 
		 dur1 diffreg wip_climate lead_ever_strngmed/d=binomial;
	run;
proc genmod descending data=quota.quotafinal; *sub-regional density;
	model quota_1= iwm_cum evermarx pr_lib2 pr_mixed pr_other lngdpmadd pwingo pwingoxxiwm freecllag1 cl2 
		 dur1 diffsubr wip_climate lead_ever_strngmed/d=binomial;
	run;
